package com.hengtiansoft.lfy.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * 评测详细信息
 * Created by suyiyang on 2016/9/26.
 */

public class EvaluatorMessageEntity extends ServiceResult implements Serializable,Parcelable {
    /**
     * 数据库id
     */
    private int id;
    /**
     * 英文
     */
    private String english;
    /**
     * 中文
     */
    private String chinese;
    /**
     * 模块类型
     */
    private String modetype ;
    /**
     * 每句话的分数
     */
    private String score;
    /**
     * 每个词的分数
     */
    private String wordscore;
    /**
     * 是否练习过的状态 0无 1有
     */
    private String state;
    /**
     * 读音的本地存储路径
     */
    private String localVoicePath;
    /**
     * 服务器对应试标题题的id
     */
    private String serial;

    /**
     * 服务器对应试题的id
     */
    private String pkSerial;
    /**
     * 写入时间
     */
    private String time;

    public EvaluatorMessageEntity(int id, String english, String chinese, String modetype, String score, String wordscore, String state, String localVoicePath, String serial, String pkSerial, String time) {
        this.id = id;
        this.english = english;
        this.chinese = chinese;
        this.modetype = modetype;
        this.score = score;
        this.wordscore = wordscore;
        this.state = state;
        this.localVoicePath = localVoicePath;
        this.serial = serial;
        this.pkSerial = pkSerial;
        this.time = time;
    }

    public EvaluatorMessageEntity() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEnglish() {
        return english;
    }

    public void setEnglish(String english) {
        this.english = english;
    }

    public String getChinese() {
        return chinese;
    }

    public void setChinese(String chinese) {
        this.chinese = chinese;
    }

    public String getModetype() {
        return modetype;
    }

    public void setModetype(String modetype) {
        this.modetype = modetype;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getWordscore() {
        return wordscore;
    }

    public void setWordscore(String wordscore) {
        this.wordscore = wordscore;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getLocalVoicePath() {
        return localVoicePath;
    }

    public void setLocalVoicePath(String localVoicePath) {
        this.localVoicePath = localVoicePath;
    }

    public String getSerial() {
        return serial;
    }

    public void setSerial(String serial) {
        this.serial = serial;
    }

    public String getPkSerial() {
        return pkSerial;
    }

    public void setPkSerial(String pkSerial) {
        this.pkSerial = pkSerial;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "EvaluatorMessageEntity{" +
                "id=" + id +
                ", english='" + english + '\'' +
                ", chinese='" + chinese + '\'' +
                ", modetype='" + modetype + '\'' +
                ", score='" + score + '\'' +
                ", wordscore='" + wordscore + '\'' +
                ", state='" + state + '\'' +
                ", localVoicePath='" + localVoicePath + '\'' +
                ", serial='" + serial + '\'' +
                ", pkSerial='" + pkSerial + '\'' +
                ", time='" + time + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(english);
        dest.writeString(chinese);
        dest.writeString(modetype);
        dest.writeString(score);
        dest.writeString(wordscore);
        dest.writeString(state);
        dest.writeString(localVoicePath);
        dest.writeString(serial);
        dest.writeString(pkSerial);
        dest.writeString(time);
        dest.writeInt(id);
    }

    public static final Parcelable.Creator<EvaluatorMessageEntity> CREATOR = new Creator<EvaluatorMessageEntity>() {
        @Override
        public EvaluatorMessageEntity createFromParcel(Parcel source) {
            return new EvaluatorMessageEntity(source);
        }

        @Override
        public EvaluatorMessageEntity[] newArray(int size) {
            return new EvaluatorMessageEntity[0];
        }
    };

    public EvaluatorMessageEntity(Parcel in)
    {
        english = in.readString();
        chinese = in.readString();
        modetype = in.readString();
        score = in.readString();
        wordscore = in.readString();
        state = in.readString();
        localVoicePath = in.readString();
        serial = in.readString();
        pkSerial = in.readString();
        time = in.readString();
        id = in.readInt();
    }

}
